package com.tarena.lbs.basic.dao.repository.impl;

import com.tarena.lbs.basic.dao.mapper.TagMapper;
import com.tarena.lbs.basic.dao.repository.TagRepository;
import com.tarena.lbs.basic.pojo.po.TagLibraryPO;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;

import java.util.List;

@Slf4j
@Repository
public class TagRepositoryImpl implements TagRepository {
    @Autowired
    private TagMapper tagMapper;

    @Override
    public List<TagLibraryPO> counts() {
        return tagMapper.counts();
    }

    @Override
    public List<TagLibraryPO> findTagsByParentId(Integer id) {
        return tagMapper.selectTagById(id);
    }
}
